package com.dys.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 疾风
 * @ClassName: Emp
 * @Description: 员工实体
 * @CreateDate: 2024/12/09
 * @Version: v1.0.0
 */
@ExcelTarget(value = "员工资料")
public class Emp implements Serializable {
    @Excel(name = "编号", orderNum = "1")
    private int id;
    @Excel(name = "姓名", orderNum = "2")
    private String name;
    @Excel(name = "年龄", orderNum = "3",suffix = "岁")
    private int age;
    @Excel(name = "生日", orderNum = "4", exportFormat = "yyyy年MM月dd日 HH时mm分ss秒")
    private Date birthday;
    @Excel(name = "状态", orderNum = "5", replace = {"在职_0", "离职_1"})
    private String status;
    @Excel(name = "头像", orderNum = "6", type = 2, savePath = "D:\\DYS2024-Workspace\\WebStorm2024_Workspace\\spring-boot-app\\springboot-parent\\springboot-easypoi\\src\\main\\resources\\static")
    private String photo;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", status='" + status + '\'' +
                ", photo='" + photo + '\'' +
                '}';
    }
}
